// @author A0096579E

package rightnow.util;

import java.util.Comparator;

import rightnow.storage.Task;

/**
 * DescriptionComparator imposes ordering of Tasks based on their description
 * attribute. Task descriptions are compared lexicographically.
 */
public class DescriptionComparator implements Comparator<Task> {

	@Override
	public int compare(Task taskA, Task taskB) {
		return taskA.getDescription().compareTo(taskB.getDescription());
	}
	
}
